﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MSRI.HelperClasses;

namespace PgMobileSMSService
{
    public class SMSService : ISMSService
    {
        #region ISMSService Members

        public bool enviarSMS(string celular, string mensaje)
        {
            try
            {
                SmsClass SmsItem = new SmsClass();
                SmsItem.Number = celular;
                SmsItem.Body = mensaje;
                SMSClass.Instance.SmsService.SendSms(SmsItem);

                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }

        #endregion
    }
}
